<div class="flat">
<a href="{tsUrl('study','show',array('id'=>$strStudy['studyid']))}"><img src="{$strStudy['photo']}" alt="{$strStudy['studyname']}" /></a>
<div>
<h1>
<a href="{tsUrl('study','show',array('id'=>$strStudy['studyid']))}">{$strStudy[studyname]}</a>          
{if $strStudy['ispublish'] == 1}
<span title="待完成课时的添加之后，请申请发布课程！">未发布</span> 
{elseif $strStudy['isaudit'] == 1}
<span title="课程处于审核状态！">未审核</span>   
{else}
<span title="课程处于发布状态！">已发布</span>   
{/if} 
</h1>
<div>
<a href="{tsUrl('study','study_user',array(studyid=>$strStudy[studyid]))}" class="mrm">{$strStudy['count_learn']}</a>个学员
<em class="mrm">|</em>
{$strStudy['count_love']} 人喜欢
<em class="mrm">|</em>
{$strStudy['count_view']} 次浏览
</div>

<ul>

<li {if $ac=='show'}class="current"{/if}><a href="{tsUrl('study','show',array('id'=>$strStudy[studyid]))}">课时</a></li>
{if $strStudy['userid']==$TS_USER['userid']}
<li {if $ac=='edit'}class="current"{/if}><a href="{tsUrl('study','edit',array('ts'=>'base','studyid'=>$strStudy['studyid']))}">管理</a></li>
<li><a href="{tsUrl('study','add',array('id'=>$strStudy[studyid]))}">添加新课时</a></li>
{/if}
</ul>
</div>
<ul>
<li><span> {$strStudy['count_lesson']}</span><span>总课时</span></li>
{if $strStudy['learn']=='' && $strStudy['userid']==$TS_USER['userid']}
<li><span>我是创建人</span></li>
{elseif $strStudy['learn']['status']==2}
<li><span>已学完</span></li>	
{elseif $strStudy['learn']['status']==1}
<li><span>{$strStudy['learn']['count_lesson']}</span>
<span>已学课时 <a href="javascript:void('0');" onclick="studyLearnCancel('{$strStudy['studyid']}');">[取消]</a></span></li>
{else}
<li><a href="javascript:void('0');" onclick="studyLearn('{$strStudy['studyid']}');">开始学习</a>
</li>
{/if}
</ul>
</div>
